<?if(!$this->mainPage):?>
    <button type="button" style="float:right; position:relative; top: 12px;" class="btn btn-success" onclick="travel.add();">Добавить
        <i class="icon-plus-sign"></i>
    </button>
    <h3>События</h3>
<? endif; ?>
<table class="table table-hover">
    <? foreach ($this->travels as $travel):?>
        <?/** @var Application_Model_Travel $travel */?>
        <tr id="travel-<?=$travel->getId(); ?>" onclick="travel.getForm(<?= $travel->getId()?>); event.stopPropagation(); return false;" class="travel <?if ($travel->getStatus()) :?>success<?endif;?>">
            <td>
                <span><?= $travel->getTitle() ?></span>

                <i title="Удалить" class="icon-trash" onclick="travel.deleteTravel(<?= $travel->getId()?>);event.stopPropagation(); return false;"></i>
                <?if (!$travel->getStatus()):?>
                    <i title="Пометить как посещенное" class="icon-ok" onclick="travel.complete(<?= $travel->getId()?>); event.stopPropagation(); return false;"></i>
                <?endif; ?>
                <i title="В дайджест" class="icon-eye-open" onclick="mn.addThing(<?=$travel->getId()?>, <?= Application_Model_Thing::TYPE_TRAVEL ?>, $('#travel-<?=$travel->getId(); ?>'));event.stopPropagation(); return false;"></i>
            </td>
        </tr>
    <?endforeach;?>
</table>












